import type { VabRouteRecordRaw } from '../types'
import Layout from '/@vab/layouts/index.vue'
const customer: VabRouteRecordRaw[] = [
  {
    path: '/customer',
    name: 'Customer',
    component: Layout,
    meta: {
      title: '客户管理',
      icon: 'user-line',
    },
    children: [
      {
        path: 'queryCustomer',
        name: 'Customer',
        component: () => import('/@/views/customerIndex/index.vue'),
        meta: {
          title: '客户查询',
          noKeepAlive: false,
          // icon: 'user-search-line',
          // dot: true,
        },
      },
      {
        path: 'addCustomer',
        name: 'AddCustomer',
        component: () => import('/@/views/customerIndex/add_customer.vue'),
        meta: {
          hidden: true,
          title: '客户创建',
          // icon: 'user-add-line',
          noKeepAlive: true,
          tabHidden: true,
        },
      },
      {
        path: 'priceListCheck',
        name: 'PriceListCheck',
        component: () => import('/@/views/customerIndex/priceListCheck.vue'),
        meta: {
          title: '客户价目表',
        },
      },
      {
        path: 'priceListCreate',
        name: 'PriceListCreate',
        component: () => import('/@/views/customerIndex/priceListCreate.vue'),
        meta: {
          hidden: true,
          title: '客户价目表创建',
          noKeepAlive: true,
          tabHidden: false,
        },
      },
      {
        path: 'priceListDetail',
        name: 'PriceListDetail',
        component: () => import('/@/views/customerIndex/priceListDetail.vue'),
        meta: {
          hidden: true,
          title: '客户价目表详情',
          noKeepAlive: true,
          tabHidden: false,
        },
      },
      {
        path: 'occupySales',
        name: 'OccupySales',
        component: () => import('/@/views/customerIndex/occupySales.vue'),
        meta: {
          title: '客户可售产品',
          noKeepAlive: false,
        },
      },
      {
        path: 'occupySalesPreview',
        name: 'OccupySalesPreview',
        component: () => import('/@/views/customerIndex/occupySalesPreview.vue'),
        meta: {
          title: '客户可售产品明细',
          noKeepAlive: false,
          hidden: true,
        },
      },
      {
        path: 'occupySalesDetail',
        name: 'OccupySalesDetail',
        component: () => import('/@/views/customerIndex/occupySalesDetail.vue'),
        meta: {
          hidden: true,
          title: '客户可售产品详情',
          noKeepAlive: true,
          tabHidden: false,
        },
      },
      /* 更改路由位置 未修改文件路径 new */
      {
        path: 'giveawayIndex',
        name: 'GiveawayIndex',
        component: () => import('/@/views/order_management/giveaway/index.vue'),
        meta: {
          title: '折扣赠品策略',
        },
      },
      {
        path: 'giveawayCreate',
        name: 'GiveawayCreate',
        component: () => import('/@/views/order_management/giveaway/create.vue'),
        meta: {
          title: '折扣赠品策略创建',
          hidden: true,
        },
      },
      {
        path: 'giveawayDetail',
        name: 'GiveawayDetail',
        component: () => import('/@/views/order_management/giveaway/detail.vue'),
        meta: {
          title: '折扣赠品策略详情',
          hidden: true,
          noKeepAlive: false,
        },
      },
      {
        path: 'mapping',
        name: 'Mapping',
        component: () => import('/@/views/customerIndex/mapping.vue'),
        meta: {
          title: '销售组织映射',
        },
      },
    ],
  },
]

export default customer
